package fr.cephb.socialsnp.core;

import java.io.Serializable;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.persistence.UniqueConstraint;

import fr.cephb.util.XObject;

/* @Entity
@Table(name="DATAITEMS",
	 uniqueConstraints=@UniqueConstraint(
	 	columnNames={"dataset_id","object_id"}
	 	)
     )*/
public class DataItem
extends XObject
implements Serializable
	{
	private static final long serialVersionUID = 1L;
	
	//@Id
	//@GeneratedValue(strategy = GenerationType.AUTO)
	private int id;

	//@ManyToOne
	private DataSet dataSet;
	private DataObject object;
	
	
	public DataSet getDataSet() {
		return dataSet;
		}
	
	public void setDataSet(DataSet dataSet) {
		this.dataSet = dataSet;
		}
	
	public void setObject(DataObject object) {
		this.object = object;
		}
	
	public DataObject getObject() {
		return object;
		}
	
	}
